﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="ProfileList.aspx.vb" Inherits="gojira.ProfileList" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:ListView ID="ListView1" runat="server" DataSourceID="SqlDataSource1" 
        GroupItemCount="3" style="margin-right: 433px; margin-bottom: 0px"> 
        <AlternatingItemTemplate>
            <td runat="server" style="background-color: #333333; color: #FFFFFF;">
                <%# Eval("FanName") %>
                <br />
                <img height="200px" width="150px" src='<%# Eval("Picture") %>' />
                <br />
                <a href='Profile.aspx?FanName=<%# Eval("FanName") %>' >View Profile</a>
            </td>
        </AlternatingItemTemplate>
        <EditItemTemplate>
            <td runat="server" style="background-color: #333333; color: #FFFFFF;">
                Picture:
                <asp:TextBox ID="PictureTextBox" runat="server" Text='<%# Bind("Picture") %>' />
                <br />FanName:
                <asp:TextBox ID="FanNameTextBox" runat="server" Text='<%# Bind("FanName") %>' />
                <br />
                <asp:Button ID="UpdateButton" runat="server" CommandName="Update" 
                    Text="Update" />
                <br />
                <asp:Button ID="CancelButton" runat="server" CommandName="Cancel" 
                    Text="Cancel" />
                <br />
            </td>
        </EditItemTemplate>
        <EmptyDataTemplate>
            <table runat="server" 
                style="background-color: #333333; border-collapse: collapse;border-color: #999999;border-style:none;border-width:1px; color: #FFFFFF;">
                <tr>
                    <td>
                        No data was returned.</td>
                </tr>
            </table>
        </EmptyDataTemplate>
        <EmptyItemTemplate>
<td runat="server" style="background-color: #333333"/>
        </EmptyItemTemplate>
        <GroupTemplate>
            <tr ID="itemPlaceholderContainer" runat="server" style="background-color: #808080">
                <td ID="itemPlaceholder" runat="server">
                </td>
            </tr>
        </GroupTemplate>
        <InsertItemTemplate>
            <td runat="server" style="">
                Picture:
                <asp:TextBox ID="PictureTextBox" runat="server" Text='<%# Bind("Picture") %>' />
                <br />FanName:
                <asp:TextBox ID="FanNameTextBox" runat="server" Text='<%# Bind("FanName") %>' />
                <br />
                <asp:Button ID="InsertButton" runat="server" CommandName="Insert" 
                    Text="Insert" />
                <br />
                <asp:Button ID="CancelButton" runat="server" CommandName="Cancel" 
                    Text="Clear" />
                <br />
            </td>
        </InsertItemTemplate>
        <ItemTemplate>
            <td runat="server" style="background-color: #333333; color: #FFFFFF;">
                <%# Eval("FanName") %>
                <br />
                <img height="200px" width="150px" src='<%# Eval("Picture") %>' />
                <br />
                <a href='Profile.aspx?FanName=<%# Eval("FanName") %>' >View Profile</a>
            </td>
        </ItemTemplate>
        <LayoutTemplate>
            <table runat="server">
                <tr runat="server">
                    <td runat="server">
                        <table ID="groupPlaceholderContainer" runat="server" border="1" 
                            style="background-color: #FFFFFF;border-collapse: collapse;border-color: #999999;border-style:none;border-width:1px;font-family: Verdana, Arial, Helvetica, sans-serif;">
                            <tr ID="groupPlaceholder" runat="server">
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr runat="server">
                    <td runat="server" 
                        style="text-align: center;background-color: #333333; font-family: Verdana, Arial, Helvetica, sans-serif;color: #FFFFFF;">
                        <asp:DataPager ID="DataPager1" runat="server" PageSize="12">
                            <Fields>
                                <asp:NextPreviousPagerField ButtonType="Button" ShowFirstPageButton="True" 
                                    ShowNextPageButton="False" ShowPreviousPageButton="False" />
                                <asp:NumericPagerField />
                                <asp:NextPreviousPagerField ButtonType="Button" ShowLastPageButton="True" 
                                    ShowNextPageButton="False" ShowPreviousPageButton="False" />
                            </Fields>
                        </asp:DataPager>
                    </td>
                </tr>
            </table>
        </LayoutTemplate>
        <SelectedItemTemplate>
            <td runat="server" 
                style="background-color: #333333; font-weight: bold;color: #FFFFFF;">
                Picture:
                <asp:Label ID="PictureLabel" runat="server" Text='<%# Eval("Picture") %>' />
                <br />FanName:
                <asp:Label ID="FanNameLabel" runat="server" Text='<%# Eval("FanName") %>' />
                <br />
            </td>
        </SelectedItemTemplate>
    </asp:ListView>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:godzillaFilms %>" 
        ProviderName="<%$ ConnectionStrings:godzillaFilms.ProviderName %>" 
        SelectCommand="SELECT [Picture], [FanName] FROM [Profile]">
    </asp:SqlDataSource>
    <br />
    User ranks:<br />
    <br />
    User ranks recognise how active fans of this website are. The higher your rank, 
    the more priveleges and kudos you will recieve. Keep checking you profile to see 
    if you have gone up in rank.<br />
    <br />
    Mothra: Upon creating a profile you will recieve the Mothra rank.<br />
    <br />
    King Ghidorah: If you make a total of six comments (with at least one each for a 
    film, home video release and merchandise item) you will recieve the King Ghidora 
    rank. You will now be allowed to add your own home video releases and 
    merchandise items.
    <br />
    <br />
    Godzilla: This rank is awarded to the most active users. Contribute to the home 
    video releases list by uploading at least two items and you will recieve the 
    coveted Godzilla rank. 
</asp:Content>
